package com.o2o.entity;

import java.util.Date;

/**
 * package_name:com.o2o.entity
 * Author:徐亚远
 * Date:2020/1/7 12:06
 * 项目名:com.o2o
 * Desription:
 **/
//顾客消费的商品映射
public class ProductSellDaily {
    private Long productId;
    private Long shopId;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    //哪天的销量,精确到天
    private Date createTime;
    //销量
    private Integer total;
    //商品信息实体类
    private Product product;
    //店铺信息实体类
    private Shop shop;

    @Override
    public String toString() {
        return "ProductSellDaily{" +
                "productId=" + productId +
                ", shopId=" + shopId +
                ", createTime=" + createTime +
                ", total=" + total +
                ", product=" + product +
                ", shop=" + shop +
                '}';
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }
}
